=driver.find_element_by_name (' NR ') #设置每页搜索结果为100条, first find id= Nr label, and then find the option tag under the Id=nr tabA Select button with value equal to 100 m.find_element_by_xpath ("//option[@value = ' 100 ' ]. Click () time.sleep (2) #保存设置的信息 driver.find_element_by_xpath ("//input[@ Value= ' Save Settings ']. Click () time.sleep (2) n=driver.switch_to_alert () n.accept () defteardown (self): Self.driver.quit () self.assertequal ([],self.verificationerrors) ' teardown The method
descriptions?Yes [] no [] free []Does the test case include the boundary value, equivalence analysis, cause and error prediction, and other test case design methods? Are different design methods used for different parts of the requirement?Yes [] no [] free []There are at least three design methods for key requirement
In this case test, the previous program is testedPackage Spittr.web;import Org.junit.test;import Org.springframework.test.web.servlet.mockmvc;import Org.springframework.test.web.servlet.request.mockmvcrequestbuilders;import Org.springframework.test.web.servlet.result.mockmvcresultmatchers;import Org.springframework.test.web.servlet.setup.mockmvcbuilders;public class Homecontrollertest {@Testpublic void Test
Test Case Specification v2.0 and test case Specification v2.0
1. Introduction
The software test specification is written to provide a guide for testers during the preparation of test cases.
Purpose
Testing is an indispensable s
Analyze the design of test cases from the "System login" test Case caseWriting test cases is the most basic work of a software Test engineer. But how to write a good test case, this rea
: Boundary Value Analysis) Checks data elements that can bring out a coherent range of values using requirements and designs for the boundaries that predict the locations of system behavior conversion.This method is used to generate three values-one is the boundary itself, and the other two are on both sides of the former (as close as possible to the number ). If the boundary is between valid and invalid, a test c
progress. This is obvious, and for the most extreme example, a writes 9 very detailed use cases, B only writes a very rough use case, but the execution degree and a is equivalent. When A's use case is fully executed, the QC is given a 90% progress, but it is clear that the actual progress is made to 50%.
We need to improve the situation.
In the first app
(3) other Test types
Iii. Design of test data
I. Test Case DesignThe so-called test plane design is actually the division of the test cases. The typical method for dividing test cases
function test case is the main basis for the key module, which is apt to happen the wrong module. (6) test types: Functional testing, boundary testing, anomaly testing, performance testing, stress testing, compatibility testing, security testing, recovery testing, installation testing, interface testing, start/Stop testing, document testing, Configure testing,
.
Back to Top
Solve the problem
Principle
Figure 2. Optimization and selection principles of Test Cases
Figure 3. Example of test case Optimization
As shown in, all test cases have a function
operation is completed in the same team project. To to perform clones across team projects, specify /destinationteamproject Switch. Note that the area path and iteration path fields need to be specified as Override to make this switch work. To change the work item type of a cloned test case, specify /destinationworkitemtype switch. /clone/status command allows cloning-based operation of the ID to track I
Test Case Design White paper-Causal diagram methodAuthor:vince Source: Http://blog.csdn.net/vincetest
I. Method Introduction 1. Definition: A method for designing test cases by using graphical analysis of various combinations of input, which is suitable for checking the various combinations of the input conditions of the program. 2. The background of causality di
testing: Creates abnormal testing scenarios and whether the exception description is clear
4) In addition, for example, the number of parameters and the parameter type (such as the int type input string parameter) error test, because the IDE itself reports compilation error information, the design of the test case can
, the test case is of course to write our own implementation; Setuptest (Javasamplercontext context) initialization method, The Setup () Teardowntest (Javasamplercontext context) in LR-like Init and JUnit is similar to the LR End and teardown () in JUnit.
With so much to say, it's time to use the example on the Internet (http://download.csdn.net/detail/u012049463
executes a unit test file individually. In such cases, the unit test files are stored where it does not matter, as long as the normal implementation of the need to test the unit Test files and unit test methods can be ...
Third, write the unit
The discussion of test cases has been nagging, and what test cases are good test cases, everyone has their own point of view. I don't want to say this. The properties of a test case, the definition of use cases and the characteristics of use cases, because these random searc
method to analyze the various combinations of input, and then design test case method, this method fully consider the input of the various combinations and the constraints of the input conditions between the relationship.
(2) Scope of application
A variety of combinations that are appropriate for checking program input conditions
The equivalence class method and boundary value method are analyzed to consid
During the interface test, a complete set of Interface Test cases exist, and the latter test case uses the data in the request results of the previous test case. In this case, the media
Go from blog: http://www.cnblogs.com/I-am-Betty/p/3566411.htmlSpecific needs: There is a landing page, (if there are 2 textbox, a Submit button.) Please design more than 30 test case for this page.)Purpose of this question: whether the interviewer is familiar with various test methods, has extensive experience in web testing, is aware of web development, and the
In some cases, you need to test the same behavior with different combinations of parameters, and you want to know what to test from the execution result of the test case, not just a big test case; Then one of them is hard to see i
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.